package o;

import android.accounts.Account;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;

public interface aox extends IInterface {

    public static abstract class e extends aqi implements aox {

        public static class e extends aqn implements aox {
            e(IBinder iBinder) {
                super(iBinder, "com.google.android.gms.common.internal.IAccountAccessor");
            }

            public final Account ˊ() throws RemoteException {
                Parcel ˎ = ˎ(2, ˎ());
                Account account = (Account) aqm.ˋ(ˎ, Account.CREATOR);
                ˎ.recycle();
                return account;
            }
        }

        public e() {
            super("com.google.android.gms.common.internal.IAccountAccessor");
        }

        public static aox ˋ(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.IAccountAccessor");
            if (queryLocalInterface instanceof aox) {
                return (aox) queryLocalInterface;
            }
            return new e(iBinder);
        }

        protected final boolean ˏ(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            if (i != 2) {
                return false;
            }
            Parcelable ˊ = ˊ();
            parcel2.writeNoException();
            aqm.ˎ(parcel2, ˊ);
            return true;
        }
    }

    Account ˊ() throws RemoteException;
}
